﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using DepInnerTask.Common.Interface;
using Common.Service;

namespace Ultimus.Web
{
    public partial class MyFileList : System.Web.UI.Page
    {
        IUpLoadFile upfile = ServiceContainer.GetService<IUpLoadFile>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["fileid"] != "" && Request.QueryString["fileid"] != null)
                {
                    BindFileData(Request.QueryString["fileid"]);
                }
            }
        }
        /// <summary>
        /// 绑定GridView
        /// </summary>
        private void BindFileData(string id)
        {
            IList list = upfile.GetList(id);
            this.gvUpLoadFile.DataSource = list;
            this.gvUpLoadFile.DataBind();
        }
    }
}